namespace DataModels.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class ExtendEID : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.AssociatedEarlyInfantDiagnosis", "MC10", c => c.Int(nullable: false));
            AddColumn("dbo.AssociatedEarlyInfantDiagnosis", "MC11", c => c.Int(nullable: false));
            AddColumn("dbo.AssociatedEarlyInfantDiagnosis", "MC12", c => c.Int(nullable: false));
            AddColumn("dbo.AssociatedEarlyInfantDiagnosis", "MC13", c => c.Int(nullable: false));
            AddColumn("dbo.AssociatedEarlyInfantDiagnosis", "MC14", c => c.Int(nullable: false));
            AddColumn("dbo.AssociatedEarlyInfantDiagnosis", "MC15", c => c.Int(nullable: false));
            AddColumn("dbo.OptionBPlusFacilities", "UpdatedByUserId", c => c.Int());
            AddColumn("dbo.OptionBPlusFacilities", "UpdateDate", c => c.DateTime());
            CreateIndex("dbo.OptionBPlusFacilities", "UpdatedByUserId");
            AddForeignKey("dbo.OptionBPlusFacilities", "UpdatedByUserId", "dbo.Users", "ID");
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.OptionBPlusFacilities", "UpdatedByUserId", "dbo.Users");
            DropIndex("dbo.OptionBPlusFacilities", new[] { "UpdatedByUserId" });
            DropColumn("dbo.OptionBPlusFacilities", "UpdateDate");
            DropColumn("dbo.OptionBPlusFacilities", "UpdatedByUserId");
            DropColumn("dbo.AssociatedEarlyInfantDiagnosis", "MC15");
            DropColumn("dbo.AssociatedEarlyInfantDiagnosis", "MC14");
            DropColumn("dbo.AssociatedEarlyInfantDiagnosis", "MC13");
            DropColumn("dbo.AssociatedEarlyInfantDiagnosis", "MC12");
            DropColumn("dbo.AssociatedEarlyInfantDiagnosis", "MC11");
            DropColumn("dbo.AssociatedEarlyInfantDiagnosis", "MC10");
        }
    }
}
